// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import './assets/css/mainv2.css';
import axios from 'axios';
import JsonViewer from 'vue-json-viewer';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import BaiduMap from 'vue-baidu-map'

Vue.use(ElementUI);
Vue.use(JsonViewer);

Vue.use(BaiduMap, {
    ak: 'GzzYz7xo0tWewZ510lke9mtxB58bgaAZ'
});

Vue.config.productionTip = false
Vue.prototype.$http = axios
Vue.prototype.$http.defaults.baseURL = 'https://dainfo.hsaeyz.cn:9041' // `baseURL` 将自动加在 `url` 前面，除非 `url` 是一个绝对 URL

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    components: { App },
    template: '<App/>'
})